package com.zlzxm.shoesmarket.net.api;

import com.zlzxm.shoesmarket.net.request.RqWareUpdate;
import com.zlzxm.shoesmarket.net.respone.BaseResponse;
import com.zlzxm.shoesmarket.net.request.RqWareAdd;
import com.zlzxm.shoesmarket.net.respone.RpRepository;

import java.util.List;

import io.reactivex.rxjava3.core.Observable;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.PUT;
import retrofit2.http.Path;

/**
 * CREATE BY zlzxm ON 2021/5/14
 */
public interface WareApi {

    @GET("qiuxie/v1/ware/{userId}")
    Observable<BaseResponse<List<RpRepository>>> ware(@Path("userId")String userId);

    @POST("qiuxie/v1/ware/add")
    Observable<BaseResponse<String>> add(@Body RqWareAdd rqWareAdd);

    @PUT("qiuxie/v1/ware/update")
    Observable<BaseResponse<String>> update(@Body RqWareUpdate rqWareUpdate);

}
